<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
// http://localhost:8080/staffmgr/
String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>录入部门信息</title>
</head>
<base href="<%=basePath%>">
<body>
<%@ include file="../header.jsp" %>
	<form action="dept.do?action=add" method="POST">
		<h1>添加部门</h1>
		部门名<input type="text" name="name" placeholder="请输入部门名"><br>
		办公室<input type="text" name="room" placeholder="请输入办公室"><br>
		电话<input type="text" name="phone" placeholder="请输入电话"><br>
		邮箱<input type="text" name="email" placeholder="请输入邮箱"><br>
		<input type="submit" value="录入">
		<div style="color: red">${error }</div>
	</form>
</body>
</html>